package com.depth.viewer.utils.jsconnection
{
	import com.depth.viewer.utils.Hashtable;

	public class JavascriptConnectionManager
	{
		private static var  eventMapping:Hashtable = new Hashtable();
		public function JavascriptConnectionManager()
		{
		}
		public static function addEventListener(type:String,functionName:String):void{
			var typeOfFunctionNames:Array = eventMapping.find(type);
			if(!typeOfFunctionNames){
				typeOfFunctionNames = [];
			}
			typeOfFunctionNames.push(functionName);
		}
		public static function dispatchEvent(type:String,data:Object):void{
			var typeOfFunctionNames:Array = eventMapping.find(type);
			if(!typeOfFunctionNames)
				return;
			for each(var functionName:String in typeOfFunctionNames){
				
			}
		}
	}
}